package com.tsj.spzx.order.mapper;

import com.tsj.spzx.model.entity.order.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderItemMapper {

    /**
     * 保存数据到order_item表
     * @param orderItemList
     */
    void save(List<OrderItem> orderItemList);


    /**
     * 根据订单id查询订单项列表
     * @param id
     * @return
     */
    List<OrderItem> getOrderItemList(Long id);
}
